pkgname=libMicro
pkgver=1.0
pkgrel=1
pkgdesc="A portable set of microbenchmarks focused on the syscall and system library interfaces."
arch=('i386' 'x86_64')
url="https://github.com/rzezeski/libMicro"
license=('CDDL')
source=("https://github.com/rzezeski/libMicro.git" 'list.patch')
md5sums=('SKIP' 'SKIP')


build() {
	cd "$srcdir/$pkgname"
	# increase the size of optstr array to avoid buffer overflow error
	sed -i 's/optstr\[256\]/optstr\[2048\]/g' src/libmicro.c
	CFLAGS="" make
}

package() {
	mkdir -p "$pkgdir/lkp/benchmarks/libMicro"
	cp -r "$srcdir/$pkgname/"* "$pkgdir/lkp/benchmarks/libMicro"
}
